<template>
  <div class="content">
    <h2>{{ type }}分类</h2>
    <ul>
      <li v-for="(item, index) in list" :key="item">
        <slot :item="item" :index="index" a="1"></slot>
      </li>
    </ul>
  </div>
</template>


<script>
export default {
  name: "Content",
  props: ["type", "id", "list"],
};
</script>

<style scoped>
.content {
  background-color: cyan;
  overflow: hidden;
  width: 200px;
}
.content h2 {
  background-color: pink;
}
footer {
  background: greenyellow;
}
</style>
